.class public Les/rz;
.super Lcom/estrongs/android/widget/o;
.source "PopupWindow_History.java"


# static fields
.field private static V:Les/rz;


# instance fields
.field private S:Lcom/estrongs/android/ui/adapter/g;

.field private T:Landroid/widget/LinearLayout;

.field private U:Landroid/widget/ListView;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/view/View;Ljava/lang/String;ILandroid/graphics/Rect;Z)V
    .locals 0

    .line 1
    invoke-direct/range {p0 .. p6}, Lcom/estrongs/android/widget/o;-><init>(Landroid/content/Context;Landroid/view/View;Ljava/lang/String;ILandroid/graphics/Rect;Z)V

    return-void
.end method

.method static synthetic a(Les/rz;)Lcom/estrongs/android/ui/adapter/g;
    .locals 0

    .line 1
    iget-object p0, p0, Les/rz;->S:Lcom/estrongs/android/ui/adapter/g;

    return-object p0
.end method

.method public static a(Landroid/view/View;Ljava/lang/String;ILandroid/graphics/Rect;Z)Les/rz;
    .locals 8

    .line 3
    sget-object v0, Les/rz;->V:Les/rz;

    if-nez v0, :cond_0

    .line 4
    new-instance v0, Les/rz;

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v2

    move-object v1, v0

    move-object v3, p0

    move-object v4, p1

    move v5, p2

    move-object v6, p3

    move v7, p4

    invoke-direct/range {v1 .. v7}, Les/rz;-><init>(Landroid/content/Context;Landroid/view/View;Ljava/lang/String;ILandroid/graphics/Rect;Z)V

    sput-object v0, Les/rz;->V:Les/rz;

    .line 5
    :cond_0
    sget-object v0, Les/rz;->V:Les/rz;

    invoke-virtual {v0}, Lcom/estrongs/android/widget/n;->d()I

    move-result v0

    if-ne v0, p2, :cond_1

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Les/rz;->V:Les/rz;

    invoke-virtual {v1}, Les/rz;->k()Landroid/content/Context;

    move-result-object v1

    if-eq v0, v1, :cond_2

    .line 6
    :cond_1
    sget-object v0, Les/rz;->V:Les/rz;

    invoke-virtual {v0}, Lcom/estrongs/android/widget/n;->a()V

    .line 7
    new-instance v0, Les/rz;

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v2

    move-object v1, v0

    move-object v3, p0

    move-object v4, p1

    move v5, p2

    move-object v6, p3

    move v7, p4

    invoke-direct/range {v1 .. v7}, Les/rz;-><init>(Landroid/content/Context;Landroid/view/View;Ljava/lang/String;ILandroid/graphics/Rect;Z)V

    sput-object v0, Les/rz;->V:Les/rz;

    .line 8
    :cond_2
    sget-object p0, Les/rz;->V:Les/rz;

    return-object p0
.end method

.method public static l()V
    .locals 1

    .line 1
    sget-object v0, Les/rz;->V:Les/rz;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/widget/n;->a()V

    :cond_0
    const/4 v0, 0x0

    .line 3
    sput-object v0, Les/rz;->V:Les/rz;

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/pop/view/FileExplorerActivity$c3;)V
    .locals 1

    .line 2
    :try_start_0
    iget-object v0, p0, Les/rz;->S:Lcom/estrongs/android/ui/adapter/g;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/adapter/g;->a(Lcom/estrongs/android/pop/view/FileExplorerActivity$c3;)V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method protected i()V
    .locals 4

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/t;->i(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    const v0, 0x7f0c02ce

    goto :goto_0

    :cond_0
    const v0, 0x7f0c036b

    .line 3
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    invoke-static {v1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f090d9e

    .line 4
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Les/rz;->T:Landroid/widget/LinearLayout;

    const/4 v2, 0x1

    .line 5
    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setFocusable(Z)V

    .line 6
    iget-object v1, p0, Les/rz;->T:Landroid/widget/LinearLayout;

    new-instance v3, Les/rz$a;

    invoke-direct {v3, p0}, Les/rz$a;-><init>(Les/rz;)V

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v1, 0x7f0906ed

    .line 7
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Les/rz;->U:Landroid/widget/ListView;

    .line 8
    new-instance v1, Lcom/estrongs/android/ui/adapter/g;

    iget-object v3, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    invoke-direct {v1, v3, v2}, Lcom/estrongs/android/ui/adapter/g;-><init>(Landroid/content/Context;Z)V

    iput-object v1, p0, Les/rz;->S:Lcom/estrongs/android/ui/adapter/g;

    .line 9
    iget-object v2, p0, Les/rz;->U:Landroid/widget/ListView;

    invoke-virtual {v2, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 10
    iget-object v1, p0, Les/rz;->U:Landroid/widget/ListView;

    iget-object v2, p0, Les/rz;->S:Lcom/estrongs/android/ui/adapter/g;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 11
    invoke-virtual {p0}, Lcom/estrongs/android/widget/o;->h()Landroid/widget/RelativeLayout;

    move-result-object v1

    const v2, 0x7f09090c

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v2, 0x7f1105fd

    .line 12
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    .line 13
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 14
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/widget/o;->a(Landroid/view/View;Landroid/widget/FrameLayout$LayoutParams;)V

    return-void
.end method

.method public j()V
    .locals 2

    .line 1
    :try_start_0
    invoke-super {p0}, Lcom/estrongs/android/widget/o;->j()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    instance-of v0, v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    check-cast v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 4
    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 5
    iget-object v1, p0, Les/rz;->S:Lcom/estrongs/android/ui/adapter/g;

    invoke-virtual {v0}, Lcom/estrongs/android/view/FileGridViewWrapper;->m0()[Lcom/estrongs/android/util/q0$a;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/adapter/g;->a([Lcom/estrongs/android/util/q0$a;)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Les/rz;->S:Lcom/estrongs/android/ui/adapter/g;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/adapter/g;->a([Lcom/estrongs/android/util/q0$a;)V

    .line 7
    :cond_1
    :goto_0
    iget-object v0, p0, Les/rz;->S:Lcom/estrongs/android/ui/adapter/g;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/adapter/g;->notifyDataSetChanged()V

    .line 8
    iget-object v0, p0, Les/rz;->U:Landroid/widget/ListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelection(I)V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    .line 9
    invoke-virtual {v0}, Ljava/lang/NullPointerException;->printStackTrace()V

    :goto_1
    return-void
.end method

.method public k()Landroid/content/Context;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    return-object v0
.end method
